
//Copyright 1997-2009 Syrinx Development, Inc.
//This file is part of the Syrinx Web Application Framework (SWAF).
// == BEGIN LICENSE ==
//
// Licensed under the terms of any of the following licenses at your
// choice:
//
//  - GNU General Public License Version 3 or later (the "GPL")
//    http://www.gnu.org/licenses/gpl.html
//
//  - GNU Lesser General Public License Version 3 or later (the "LGPL")
//    http://www.gnu.org/licenses/lgpl.html
//
//  - Mozilla Public License Version 1.1 or later (the "MPL")
//    http://www.mozilla.org/MPL/MPL-1.1.html
//
// == END LICENSE ==
using System;
using System.Collections.Generic;
using System.Text;

using Swaf;
using Swaf.BizObj;
using Swaf.Security;

namespace UserLogin
{
    /// <summary>
    /// 
    /// </summary>
    public interface IUserLoginManager
    {
        /// <summary>
        /// Given the values from the passed UserGroup bizobj, this will copy its values
        /// into a local instance if it is contained.
        /// </summary>
        /// <param name="group">The UserGroup with the new values to update the implementations
        /// local version</param>
        void userGroupUpdated(IBizObj group);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
		void userGroupDeleted(IBizObj group);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <param name="userGroups"></param>
        /// <returns></returns>
        IBizObj userActive(IBizObj user, IBizObjList userGroups);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        /// <param name="userGroups"></param>
        void userUpdated(IBizObj user, IBizObjList userGroups);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="principal"></param>
        void principalActive(ISecurityPrincipal principal);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="user"></param>
        void userDeactive(IBizObj user);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="principal"></param>
        void principalDeactive(ISecurityPrincipal principal);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="appFunctionGroupId"></param>
        /// <param name="appFunction"></param>
		void appFunctionAdded(string appFunctionGroupId, IBizObj appFunction);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="appFunctionGroupId"></param>
        /// <param name="appFunction"></param>
        /// <param name="companyId"></param>
		void appFunctionAdded(string appFunctionGroupId, IBizObj appFunction, Swaf.BGuid.Guid companyId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="appFunction"></param>
		void appFunctionRemoved(IBizObj appFunction);

        /// <summary>
        /// 
        /// </summary>
		IBizObjList AppFunctions { get;}

		IBizObjList getCompanyAppFunctions(Swaf.BGuid.Guid companyId);
    }
}
